<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<%@ page import="com.msmall.base.util.ConstantDB" language="java"%>
<c:set var="QUESTION_TERMINAL_NO" value="<%=ConstantDB.QUESTION_TERMINAL_NO%>"></c:set>
<c:set var="QUESTION_TERMINAL_YES" value="<%=ConstantDB.QUESTION_TERMINAL_YES%>"></c:set>

<div class="que_module martop10">
	<div class="w740 fl">
		<div class="qlistques">
			<div id="wikiTabs" class="qlistquesnav">
				<p id="wikiMotherTabs-" class=""><c:out value='${motherWiki.current.title}'/></p>
				<p id="wikiBabyTabs-" class=""><c:out value='${babyWiki.current.title}'/></p>
			</div>
		</div>
		<div id="wikiMotherTabs" class="qshowanswerdiv" style="display:none;">
			<c:forEach var="parent" items="${motherWiki.children}" varStatus="parentStatus">
				<c:set var="current" value="${parent.current}"></c:set>
				<c:set var="children" value="${parent.children}"></c:set>
				<div class="dictionleft">
					<div class="dicrionleftnav">
						<p class="sH705"><c:out value="${current.title}"/></p>
					</div>
					<dl class="dictionleftdl">
						<c:set var="childLength" value="${fn:length(children)}"></c:set>
						<c:forEach var="child" items="${children}" varStatus="childStatus">
			   				<c:set var="segment" value="${child.current}"></c:set>
			   				<a href="<c:url value='/wiki/view.do?segid=${segment.segmentid}'/>"><c:out value="${segment.title}"/></a>
							<c:if test="${childStatus.count < childLength }">|</c:if> 
				   		</c:forEach>
					</dl>
				</div>
			</c:forEach>
		</div>
		<div id="wikiBabyTabs" class="qshowanswerdiv" style="display:none;">
			<c:forEach var="parent" items="${babyWiki.children}" varStatus="parentStatus">
				<c:set var="current" value="${parent.current}"></c:set>
				<c:set var="children" value="${parent.children}"></c:set>
				<div class="dictionleft">
					<div class="dicrionleftnav">
						<p class="sH705"><c:out value="${current.title}"/></p>
					</div>
					<dl class="dictionleftdl">
						<c:set var="childLength" value="${fn:length(children)}"></c:set>
						<c:forEach var="child" items="${children}" varStatus="childStatus">
			   				<c:set var="segment" value="${child.current}"></c:set>
			   				<a href="<c:url value='/wiki/view.do?segid=${segment.segmentid}'/>"><c:out value="${segment.title}"/></a>
							<c:if test="${childStatus.count < childLength }">|</c:if> 
				   		</c:forEach>
					</dl>
				</div>
			</c:forEach>
		</div>
	</div>
	<div class="w250 fr">
		<tiles:insertDefinition name="html.wiki.index.bbs"></tiles:insertDefinition>
		<tiles:insertDefinition name="html.wiki.index.klg"></tiles:insertDefinition>
	</div>
</div>

<script>
$.each($("#wikiTabs p"),function(i, n){
	n.onmouseover=function(){
		var pid=$(this).attr('id');
		var ids = pid.split('-');
		this.timer=window.setTimeout(function(){
		$("#wikiTabs p").removeClass("qlistquesnavbg").addClass("");
		$("#wikiMotherTabs").css("display","none");
		$("#wikiBabyTabs").css("display","none");
		n.className="qlistquesnavbg";
		
		
		$("#"+ids[0]).css("display","block");
		},100)
	};
	n.onmouseout=function(){window.clearTimeout(this.timer);}
});
$("#wikiTabs p:first").mouseover(); 
</script>
